// pages/components/navbar/navbar.js
const app = getApp()
Component({
  properties: {
    pageName: String,
    showBrank: {
      type: Boolean,
      value: true
    }
  },
  data: {
    navH: 0,
    navbarData: {
      showCapsule: 1
    }
  },
  lifetimes: {
    attached() {
      this.setData({
        navH: app.globalData.navHeight
      })
    }
  },
  methods: {
    navBack() {
      wx.navigateBack({
        delta: 1
      })
    }
  }
})